<?php

namespace App\Http\Controllers;


use App\Services\IndustryService;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiannei\Response\Laravel\Support\Facades\Response;

class IndustryController extends Controller
{
    /**
     * Get Industry List
     * @param Request $request
     * @return JsonResponse
     */
    public function index(Request $request): JsonResponse
    {
        try {
            $data = IndustryService::getList();
            return Response::success($data);
        } catch (\Exception $e) {
            return Response::fail($e->getMessage());
        }
    }
}
